<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf'%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<fmt:bundle
	basename="br.com.universidade.castelo.branco.resources.ApplicationResources"
	prefix="">
	<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	</head>
	<body>

		<jsp:include
			page="/WEB-INF/views/pesquisadesatisfacao/relatorio/formularioRelatorioSetor.jsp"
			flush="true"></jsp:include>

		<img src="resources/imagens/pixel_transparente.gif" height="5%"
			width="10%">
			
			<div align="center">
			
			<fieldset id="fieldsetDownload">

				<legend id="alinhamentoForm">
					<h3>
						<fmt:message key="relatorio.modulo.gerencial.download"></fmt:message>
					</h3>
				</legend>

				<table>
					<tr>
						<th width="60px"><a href="baixarGraficoSetor"><div class=imgPdf></div>PDF</a></th>
					</tr>
				</table>
				
			</fieldset>
			
			</div>
			
			<br />
			<br />
			<br />
			

		<div align="center">

			<fieldset id="fieldsetConsulta">

				<legend id="alinhamentoFormConsulta">
					<h3>
						<fmt:message key="pesquisas.modulo.titulo"></fmt:message>
					</h3>
				</legend>


				<table class=linhasAlternadas align="center">

					<tr>
						<th><fmt:message
								key="consulta.modulo.questionario.campo.titulo.questionario"></fmt:message></th>
						<th><fmt:message key="consulta.modulo.pesquisa.campo.tema"></fmt:message></th>
						<th><fmt:message
								key="consulta.modulo.pesquisa.campo.objetivo"></fmt:message></th>
						<th><fmt:message
								key="consulta.modulo.pesquisa.campo.comentario"></fmt:message></th>
						<th><fmt:message
								key="consulta.modulo.pesquisa.campo.data.inicio"></fmt:message></th>
						<th><fmt:message
								key="consulta.modulo.pesquisa.campo.data.termino"></fmt:message></th>
					</tr>

					<c:forEach items="${exibePesquisa}" var="pesquisa">
						<tr>
							<td>${pesquisa.auxTitulo}</td>
							<td>${pesquisa.tema}</td>
							<td>${pesquisa.objetivo}</td>
							<td>${pesquisa.comentario}</td>
							<td><fmt:formatDate value="${pesquisa.dataInicio}" /></td>
							<td><fmt:formatDate value="${pesquisa.dataTermino}" /></td>
						</tr>
					</c:forEach>
				</table>
			</fieldset>
		</div>
		<br />
		<br />
		<br />

		<div align="center">

			<fieldset id="fieldsetConsulta">

				<legend id="alinhamentoForm">
					<h3>
						<fmt:message key="relatorio.questionario"></fmt:message>
					</h3>
				</legend>
				
				<c:forEach items="${dadosGrafico}" var="respostaPesquisa">

				<cewolf:chart id="line" title="Pesquisa: ${respostaPesquisa.tema}   -   Questionario: ${respostaPesquisa.titulo}"
					type="horizontalbar3d" xaxislabel="${respostaPesquisa.nomeEixoY}"
					yaxislabel="${respostaPesquisa.nomeEixoX}">

					<cewolf:gradientpaint>
						<cewolf:point x="0" y="0" color="#FBFBFB" />
						<cewolf:point x="350" y="0" color="#F3F3F3" />
					</cewolf:gradientpaint>

					<cewolf:data>
						<cewolf:producer id="${respostaPesquisa.nomeGrafico}" />
					</cewolf:data>

				</cewolf:chart>

				<br />
				<cewolf:img chartid="line" renderer="/cewolf" width="1200"
					height="480" />
					
					</c:forEach>
				<br /> <br /> <br />

			</fieldset>
		</div>
	</body>
</fmt:bundle>
</html>